using System.Collections;
using Rdl;

namespace GTame.ReportParser
{

    public class MatrixRowType
    {

        private string _Height;
        private GTame.ReportParser.MatrixCellsType _MatrixCells;

        public string Height
        {
            get
            {
                return _Height;
            }
            set
            {
                _Height = value;
            }
        }

        public GTame.ReportParser.MatrixCellsType MatrixCells
        {
            get
            {
                if (_MatrixCells == null)
                    _MatrixCells = new GTame.ReportParser.MatrixCellsType();
                return _MatrixCells;
            }
            set
            {
                _MatrixCells = value;
            }
        }

        public MatrixRowType()
        {
        }

        public Rdl.MatrixRowType Write()
        {
            Rdl.MatrixRowType matrixRowType = new Rdl.MatrixRowType();
            System.Collections.ArrayList arrayList = new System.Collections.ArrayList();
            if (_Height != null)
                arrayList.Add(_Height);
            if (_MatrixCells != null)
                arrayList.Add(_MatrixCells.Write());
            matrixRowType.Items = arrayList.ToArray();
            arrayList = null;
            return matrixRowType;
        }

    } // class MatrixRowType

}

